﻿namespace Hsenl {
    public static class DataVersion<T> where T : IDataVersionUpdatable {
        public static int LatestVersion => DataVersionManager<T>.Instance.LatestVersion;
        public static void RegisterDataVersionHandler(IDataVersionHandler handler) => DataVersionManager<T>.Instance.RegisterDataVersionHandler(handler);
        public static void UnregisterDataVersionHandler(IDataVersionHandler handler) => DataVersionManager<T>.Instance.UnregisterDataVersionHandler(handler);
        public static IDataVersionUpdatable UpadateVersion(IDataVersionUpdatable dataUpdatable) => DataVersionManager<T>.Instance.UpadateVersion(dataUpdatable);
    }
}